package y_2025.m03.d08.t04;

import java.util.Scanner;

public class CylinderVolume {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入底面半径：");
        double r = scanner.nextDouble();
        System.out.print("输入高度：");
        double h = scanner.nextDouble();
        double volume = Math.PI * r * r * h;
        System.out.printf("体积：%.2f", volume);
        scanner.close();
    }
}